public class Main {
    public static void main(String[] args) {
        Test test = new Test(true);
    }
}

class Test {
    public Test() {
        System.out.println("Constructor one invoked!");
    }

    public Test(int x) {
        this(); // 调用无参构造方法
        System.out.println("Constructor two invoked!");
    }

    public Test(boolean b) {
        this(0); // 调用带 int 参数的构造方法
        System.out.println("Constructor three invoked!");
    }
}